<?php
header('Content-Type: application/javascript');

define('WEB_ROOT', realpath(__DIR__ .'/../../../'));
define('THEME_JS', WEB_ROOT . '/themes/aiyawa/js/');
define('PUBLIC_JS', WEB_ROOT . '/js/');

$libs = array(
		//public
		PUBLIC_JS . 'common.js',
		PUBLIC_JS . 'tbox/box.js',
		PUBLIC_JS  . 'jquery.form.js',
		// theme
		THEME_JS  . 'jquery.validator.reg.js',
		THEME_JS  . 'jquery.corners.min.js',
		THEME_JS  . 'jquery.json.js',
		THEME_JS  . 'jquery.menu.js',
		THEME_JS  . 'jquery.friend.js',
		THEME_JS  . 'jquery.slider.js',
		THEME_JS  . 'jquery.cookie.js',
		THEME_JS  . 'graphics.js',
		THEME_JS  . 'raphael.js',
		THEME_JS  . 'syronex-colorpicker.js',
		THEME_JS  . 'jquery.simple_editor.js',
		THEME_JS  . 'jquery.comments.js',
		THEME_JS  . 'jquery.area.js',
		THEME_JS  . 'jquery.album.js',
		THEME_JS  . 'jquery.timer.js',
		THEME_JS  . 'jquery.lazyload.js',
		THEME_JS  . 'jquery.content_loader.js',
		THEME_JS  . 'jquery.date_selector.js',
		THEME_JS  . 'jquery.scrollable.js',
		THEME_JS  . 'jquery.photo.js',
		THEME_JS  . 'bootstrap.js',
	);

$js = '';
foreach ($libs as $file) {
	$js .= @file_get_contents($file) . "\n\n";
}
echo $js;
